<?php
$url = base64_decode($_GET["url"]);
if($url){
	$img = file_get_contents($url);
	$type = substr($url, strlen($url)-3, 3);
	header("Expires: Fri, 08 Apr 2099 00:00:00 GMT");
	header("Cache-Control: must-revalidate");
	if($ype == "gif"){
		header("Content-Type: image/gif");
	}
	else{
		header("Content-Type: image/jpeg");
	}
	echo $img;
}
?>